package com.dhecp.project.finance.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.dhecp.core.genericDao.GenericDao;
import com.dhecp.project.finance.domain.AccountCountForUser;
import com.dhecp.project.finance.domain.AccountDetailedForUser;

/**
 * 用户账户流水 DAO
 * @author DH-Xxj
 * @version 2022年10月10日
 */
public interface AccountDetailedForUserMapper extends GenericDao<AccountDetailedForUser, String>{
	
	/**
	 * 查询
	 * @param params
	 * @return List - AccountDetailedForUser
	 * @author DH-Xxj
	 */
	List<AccountDetailedForUser> selectAll(Map<String, Object> params);

	/**
	 * 查询汇总金额
	 * @param params
	 * @return List - AccountCountForUser
	 * @author DH-Xxj
	 */
	List<AccountCountForUser> selectCountAll(Map<String, Object> params);
	
	/**
	 * 查询指定用户的汇总金额
	 * @param userId 必要参数：用户编号
	 * @return AccountCountForUser 实体
	 * @author DH-Xxj
	 */
	AccountCountForUser selectCountByUserId(@Param("userId") String userId);

}
